package com.matrix.draft.sockettest.newprotocoltcp.pojo;

public class StringMessage extends MyMessage {
    public StringMessage(String strContent) {
        setAffairType(AffairTypes.STRING.getValue());
        setContent(strContent);
    }

    // 重载父级的getContent, 更方便获取String类型的content
    @Override
    public String getContent() {
        return (String) super.getContent();
    }

}
